//
//  UserAPI.h
//  RainbowFM
//
//  Created by chenli on 14/12/17.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserAPI : NSObject

/**
 *  获取用户资料
 *
 *  @param userID <#userID description#>
 *  @param res    <#res description#>
 */
-(void)fetchUserProfileWithUserID:(NSString *)userID result:(void(^)(NSDictionary *dict,NSString *msg))res;

/**
 *  用户收货地址列表
 *
 *  @param userID <#userID description#>
 *  @param start  <#start description#>
 *  @param count  <#count description#>
 *  @param res    <#res description#>
 */
-(void)fetchUserAddressWithUserID:(NSString *)userID currentPage:(NSString *)start pageSize:(NSString *)count result:(void(^)(NSArray *array,NSString *msg))res;


/**
 *  编辑用户资料
 *
 *  @param userID     <#userID description#>
 *  @param paramsDict <#paramsDict description#>
 *  @param res        <#res description#>
 */
-(void)editUserProfileWithUserID:(NSString *)userID mgrField:(NSString *)mgr userTel:(NSString *)userTel_ userOldPwd:(NSString *)userOldPwd_ smsValidateToken:(NSString *)smsCode userPwd:(NSString *)userPwd_ nickName:(NSString *)nickName_ sex:(NSString *)sex_ birthDay:(NSString *)birthDay_ address:(NSString *)address_ sign:(NSString *)sign_ headPic:(NSString *)headPic_ result:(void(^)(BOOL success))res;

/**
 *  管理收货地址
 *
 *  @param oper     1：添加 2：修改 3：删除
 *  @param deliId   <#deliId description#>
 *  @param userId   <#userId description#>
 *  @param name     <#name description#>
 *  @param tel      <#tel description#>
 *  @param areaAddr <#areaAddr description#>
 *  @param dtlAddr  <#dtlAddr description#>
 *  @param res      <#res description#>
 */
-(void)userManageAddressWithOper:(NSString *)oper deliID:(NSString *)deliId userID:(NSString *)userId deliName:(NSString *)name deliTel:(NSString *)tel deliAreaAddr:(NSString *)areaAddr deliDtlAddr:(NSString *)dtlAddr result:(void(^)(BOOL success))res;


-(void)fetchUserAddressDetailWithUserID:(NSString *)userId deliID:(NSString *)deliId result:(void(^)(NSDictionary *dict,NSString *msg))res;

@end
